<?php
namespace app\test\Validate;
use think\Validate;

class tushuSetting extends Validate{

    protected $rule = [
        'title|幼儿园' => 'require',
        'addr|地址' => 'require',
        'tel|联系电话' => 'require|min:11',
    ];

    protected $message = [
        'title.require' => '学校名称不能为空！',
        'addr.require' => '学校地址不能为空！',
        'tel.require' => '联系电话不能为空！',
        'tel.min' => '手机号码长度不能低于11位！',
    ];

}

?>